package cn.com.sueframe.action;

import java.sql.SQLException;

import cn.com.sueframe.service.TestService;
import cn.com.sueframe.vo.TestVO;

import com.opensymphony.xwork2.ActionSupport;

/**
 * 执行业务逻辑
 * 
 * @author anler
 * @create: 2012-8-14
 */
public class TestAction extends ActionSupport {

	private static final long serialVersionUID = 1L;
	private TestService testService;
	private TestVO testVO;

	/**
	 * 用于测试三框架
	 * 
	 * @author anler
	 * @return String
	 * @create: 2012-8-14
	 */
	public String toTest() {
		try {
			testService.test(testVO);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

	public TestService getTestService() {
		return testService;
	}

	public void setTestService(TestService testService) {
		this.testService = testService;
	}

	public TestVO getTestVO() {
		return testVO;
	}

	public void setTestVO(TestVO testVO) {
		this.testVO = testVO;
	}
}
